home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!willen.demon.co.uk
- From: Adrian Parker <adrian@willen.demon.co.uk>
- Newsgroups: comp.unix.questions,comp.lang.c,comp.lang.c++
- Subject: Re: Calling COBOL from C/C++
- Date: Thu, 18 Apr 96 08:04:55 GMT
- Organization: Quondam Ltd
- Message-ID: <829814695snz@willen.demon.co.uk>
- References: <317545E2.1DA0@interramp.com>
- Reply-To: adrian@willen.demon.co.uk
- X-NNTP-Posting-Host: willen.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: willen.demon.co.uk
-
- In article <317545E2.1DA0@interramp.com>
- zimmerdc@interramp.com "Daniel C. Zimmerman" writes:
-
- > We are trying to call a Microfocus COBOL program from a C/C++ program.
- > We would like to receive extensive error messages (codes) from the COBOL
- > program. One way to do this is to use the "system" call, but it does
- > not give us the capability of getting anything more than "success" or
- > "failure." What are some other ways to do this?
-
- Try asking in comp.lang.cobol they will be able to tell you for sure.
-
- You don't need to use "system", you can call your C routine directly
- with a CALL statement.
-
- I think, that in your cobol prog you pass a variable by reference,
- to the C prog, which can then change the variable, which will then
- be available to the cobol program when you return... it's been a
- long time since I had to do this.
-
- adrian
- --
- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
- :: Adrian Parker adrian@willen.demon.co.uk Quondam Ltd ::
- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
-